// 设计模式下的组件样式

@mixin design-style($content: '组件') {
  border: 1px solid var(--el-border-color);
  border-radius: 5px;
  width: 100%;
  height: 100%;
  position: relative;

  &:before {
    content: $content;
    position: absolute;
    color: var(--el-color-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    line-height: 100%;
  }
}

.design-style {
  @include design-style();
}